package org.bluedream.core.module.entity.depItem;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;
import org.bluedream.comm.base.PageEntity;

/**
 * @ClassName depItemUserUser
 * @Description TODO
 * @Author Administrator
 * @Data 2022/5/26 13:17
 * @Version
 */
@Data
@ToString(callSuper = true)
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@TableName(value = "t_dep_user")
public class DepItemUser extends PageEntity<DepItemUser> {
    private static final long serialVersionUID = 5406051393073655864L;

    @NonNull
    private String depCode;
    @NonNull
    private String loginCode;

    public DepItemUser(String depCode, String loginCode) {
        this.depCode = depCode;
        this.loginCode = loginCode;
    }

    public DepItemUser(String id) {
        this.id = id;
    }

    public DepItemUser(Long limit, Long pageSize) {
        super(limit, pageSize);
    }
}